---
title: Button
description: Displays a button or a component that looks like a button.
shadcnDocsLink: https://ui.shadcn.com/docs/components/button
---

<ComponentPreview component="button">
```tsx file=<rootDir>/src/examples/ui/button/index.tsx
  ```
</ComponentPreview>

## Installation

<Installation component="button">
  ```tsx file=<rootDir>/src/components/ui/button.tsx
  ```
</Installation>

## Usage

```ts
import { Button } from '@/components/ui/button'
```

```tsx
<Button>Default</Button>
```

## Examples

### Default

<ComponentPreview component="button" example="default">
  ```tsx file=<rootDir>/src/examples/ui/button/index.tsx
  ```
</ComponentPreview>

### Reverse

<ComponentPreview component="button" example="reverse">
  ```tsx file=<rootDir>/src/examples/ui/button/reverse.tsx
  ```
</ComponentPreview> 

### No Shadow

<ComponentPreview component="button" example="noShadow">
  ```tsx file=<rootDir>/src/examples/ui/button/no-shadow.tsx
  ```
</ComponentPreview>

### Neutral

<ComponentPreview component="button" example="neutral">
  ```tsx file=<rootDir>/src/examples/ui/button/neutral.tsx
  ```
</ComponentPreview>

### With Icon

<ComponentPreview component="button" example="with-icon">
  ```tsx file=<rootDir>/src/examples/ui/button/with-icon.tsx
  ```
</ComponentPreview>

### Icon

<ComponentPreview component="button" example="icon">
  ```tsx file=<rootDir>/src/examples/ui/button/icon.tsx
  ```
</ComponentPreview>